package com.jiayujie.httputils;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadPool {

	private  static ExecutorService service;
	private ThreadPool(){}
	public static ExecutorService getInstance(int x){
		if (service==null) {
			 service = Executors.newFixedThreadPool(x);
		}
		return service;
	}
}
